<script type="text/javascript">
    $(function(){
        $('#cc').combobox({
            url:'get_allcity.php',
            valueField:'id',
            textField:'city',
            onSelect: function(record){
                var val = $('#cc').combobox('getValue');
                document.getElementById('city').value = val;
            },
            onChange: function(record){
                var val = $('#cc').combobox('getValue');
                document.getElementById('city').value = val;
            }
        });
    });

</script>

<div class="fitem">
    <label>Id:</label>
    <input name="id" class="easyui-validatebox" readonly="readonly" />
</div>
<div class="fitem">
    <label>Partner name:</label>
    <input name="partnername" class="easyui-validatebox" required="true" />
</div>
<div class="fitem">
    <label>Address :</label>
    <input name="street1" class="easyui-validatebox" required="true" />
</div>
<div class="fitem">
    <label>Select city :</label>
    <input type="hidden" id="city" name="city" style="width: 100px;" />
    <input id="cc" name="cityname" style="width:200px" required="true" />
</div>

<div class="fitem">
    <label>Zip :</label>
    <input name="zip" class="easyui-validatebox" />
</div>
<div class="fitem">
    <label>Phone :</label>
    <input name="phone1" class="easyui-validatebox" />
</div>
<div class="fitem">
    <label>E-mail :</label>
    <input name="email" class="easyui-validatebox" required="true" validType="email" />
</div>